<?php if (!defined('THINK_PATH')) exit();?><body style="margin: 0px;margin: 0px;">
<div style="width:100%;background:#676262;height:100%;">
<img style="width:100%;" src="/admin/agent_admin/Public/home/images/weixin.png">
</div>
</body>
<script>
		function isWeiXin() 
		{
			var ua = window.navigator.userAgent.toLowerCase();
			console.log(ua);//mozilla/5.0 (iphone; cpu iphone os 9_1 like mac os x) applewebkit/601.1.46 (khtml, like gecko)version/9.0 mobile/13b143 safari/601.1
			if (ua.match(/MicroMessenger/i) == 'micromessenger') 
			{
				return true;
			}else 
			{
				return true;
			}
		}
		if(isWeiXin())
		{
			self.location='<?php echo U('Index/img') ?>'; /*  发现如果是微信浏览器  就跳转到这个界面  */
		}else
		{
			self.location="<?php echo U('Index/payoff') ?>";/*  发现如果不是微信浏览器  就继续浏览  */
			
		}


</script>